<template>
  <div>
    <Content :styles="{backgroundColor:'yellow'}">
      <button @click="onClick">点击</button>
    </Content>
  </div>
</template>

<script>
import Content from "../components/content/Content"
export default {
  components:{
    Content
  },
  methods:{
    onClick(){
      this.$router.pushRouteByQuery("/details");
    }
  }
}
</script>